﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Foundation.ObjectHydrator.Interfaces;

namespace Foundation.ObjectHydrator.Generators
{
    public class AmericanCityGenerator:IGenerator
    {
        Random random;
        IList<string> citynames = new List<string>();

        public AmericanCityGenerator()
        {
            random = new Random();
            LoadCityNames();
        }

        public void LoadCityNames()
        {
            citynames = new List<string>() { "Anaheim", "Boston", "New York", "Baltimore", "Los Angeles" };
        }

        public object Generate()
        {
            return citynames[random.Next(0, citynames.Count)];
        }
    }
}
